<?php 
include '../database/connect.php';
$username = $_SESSION['username'];
$tid=$_GET['id'];
$query = "DELETE FROM lessons WHERE id='$tid'";
//var_dump($query);
$result = mysql_query($query) or die("Error executing '$query':" . mysql_error());
?>
<p class="error">Lesson deleted!</p>